package com.study.designpartten.template;

/**
 * 模板方法模式
 */
public class CookMeet extends Cook{

    @Override
    public void buy() {
        System.out.println("m---buy");
    }

    @Override
    public void watch() {
        System.out.println("m---watch");
    }

    @Override
    public void eat() {
        System.out.println("m---eat");
    }

    public static void main(String[] args) {
        Cook c = new CookMeet();
        c.cook();

    }

}
